<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Control extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->library('xmlrpc');
        $this->load->library('xmlrpcs');
    }

    function index() {
        $config['functions']['usu.add'] = array('function' => 'Usuario.add');
        $config['functions']['usu.upd'] = array('function' => 'Usuario.update');
        $config['functions']['usu.del'] = array('function' => 'Usuario.delete');
        $config['functions']['usu.sel'] = array('function' => 'Usuario.select');

        $config['functions']['pag.add'] = array('function' => 'Pagina.add');
        $config['functions']['pag.upd'] = array('function' => 'Pagina.update');
        $config['functions']['pag.del'] = array('function' => 'Pagina.delete');
        $config['functions']['pag.sel'] = array('function' => 'Pagina.select');

        $config['functions']['con.add'] = array('function' => 'Contenido.add');
        $config['functions']['con.upd'] = array('function' => 'Contenido.update');
        $config['functions']['con.del'] = array('function' => 'Contenido.delete');
        $config['functions']['con.sel'] = array('function' => 'Contenido.select');

        $this->xmlrpcs->initialize($config);
        $this->xmlrpcs->serve();
    }

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */